<template>
 <div>
     <div class="nav">
        <router-link to="/discover">发现音乐</router-link>
        <router-link to="/my">我的音乐</router-link>
        <router-link to="/friend">关注</router-link>
     </div>
     <!-- 路由出口 -->
     <router-view />
 </div>
</template>

<script>
export default {

}
</script>

<style scoped>

.nav {
  background-color: #242424;
  height: 56px;
  display: flex;
  align-items: center;
}

.nav a {
  flex: 1;
  text-align: center;
  color: #fff;
  text-decoration: none;
}

.nav a.router-link-active {
  color: #f00;
}


</style>